<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-product_id" data-rule="required"  data-source="clothmaking_product/index" data-field="name"  class="form-control selectpage" name="row[product_id]" type="text" value="">
       
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Quantity')}:</label>
        <div class="col-xs-12 col-sm-8 location-relative">
            <input id="c-quantity" data-rule="required" class="form-control" name="row[quantity]" type="number">
            <span class="location-absolute">m²</span>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}"
                 {in name="key" value="nomarl"} checked {/in} {in name="key" value="$row.status"} disabled {/in}/> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Out_type')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-out_type" data-rule="required" class="form-control selectpicker" name="row[out_type]">
                {foreach name="outTypeList" item="vo"}
                    <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-order_id" data-source="clothmaking_orders/index"  data-field="name" data-format-item="{id} - {name}"   class="form-control selectpage" name="row[order_id]" type="text" value="">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Operator_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-operator_id" data-rule="required" data-field="nickname" data-source="auth/admin" class="form-control selectpage" name="row[operator_id]" type="text" value="">
        </div>
    </div> -->
    <input type="hidden" id="c-operator_id" name="row[operator_id]" value="{$admin.id}" />
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remark')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <textarea id="c-remark" class="form-control " rows="5" name="row[remark]" cols="50"></textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
<style>
    .location-relative {
        position: relative;
    }
    .location-absolute {
        position: absolute;
        top: 5px;
        right: 45px;
    }
</style>